#include <iostream>
using namespace std;
void main()
{
    int a;
	int b,n=10,c;
    cout<<"Vvedite chislo:\n";
    cin>>a;// 123456
    while(a>0)
	{
		b=a%n;//3 2
		a=a/n-((a%n)/n);//12
       	b=(b*n)+b;
		b=b+(a%n);
		if(a<10)
		{
		cout<<b;
		}
		else{continue;}
	}}